package edu.hrbu.spring.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author 徐登宇
 */
@Component
public class Human {

    @Value("张三")
    private String name;

    @Value("23")
    private int age;

    @Override
    public String toString() {
        return "Human{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
